# coding: utf8
import winrm
import sys

win = winrm.Session(r'http://{0}:5985/wsman'.format(sys.argv[1]),auth=(r'cec\administrator',r'cec-2023'), transport="ntlm")
r= win.run_ps(r"$client=new-object System.Net.WebClient; $client.DownloadFile('http://10.10.10.3:9528/api/download?filename={0}', 'C:\Users\{1}\Downloads\{0}')".format(sys.argv[2], sys.argv[3]))